package cn.com.basic.framework.exception.enums.errors;

import cn.com.basic.framework.exception.enums.IErrorCode;

/**
 * 通用错误码
 * 00000 请求成功
 * @author cuixk
 */
public enum CommonCode implements IErrorCode {
    /**
     * 请求成功错误码
     */
    SUCCESS_STATUS("00000","请求成功");

    private final String code;
    private final String description;

    CommonCode(String code, String description) {
        this.code = code;
        this.description = description;
    }

    @Override
    public String getKey() {
        return this.code;
    }

    @Override
    public String getValue() {
        return this.description;
    }

    @Override
    public String toString() {
        return String.format("Code:[%s], Describe:[%s]", this.code, this.description);
    }

}
